package com.zrrd.mcl.product.controller;

import com.zrrd.mcl.common.result.Result;
import com.zrrd.mcl.model.product.BaseSaleAttr;
import com.zrrd.mcl.product.service.BaseSaleAttrServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/product")
public class BaseSaleAttrController {

    @Autowired
    private BaseSaleAttrServce baseSaleAttrServce;

    @GetMapping("/baseSaleAttrList")
    public Result<List<BaseSaleAttr>> baseSaleAttrList() {
        return Result.ok(baseSaleAttrServce.list(null));
    }



}
